package jscinttools.utilities.plotterutilities;
import jhplot.H1D;
import jhplot.P1D;
import jhplot.F1D;
import jhplot.jadraw.JaKey;
import java.awt.Color;

public class StdKeyJa extends JaKey{
	
	public StdKeyJa(){
		super();
	}
	
	public StdKeyJa(P1D p1d, double x, double y){
		super();
		super.setKey(p1d.getSymbol());
		super.setPenWidth(2);
		super.setText(p1d.getTitle());
		super.setFont(PlotFonts.LEGEND_FONT);
		Color color = p1d.getColor();
		super.setColor(color);
		super.setKeyColor(color);
		super.setLocation(x, y, "NDC");
	}
	
	public StdKeyJa(H1D h1d, double x, double y){
		super();
		super.setKey(20);
		super.setPenWidth(2);
		super.setText(h1d.getTitle());
		super.setFont(PlotFonts.LEGEND_FONT);
		Color color = h1d.getColor();
		super.setColor(color);
		super.setKeyColor(color);
		super.setLocation(x, y, "NDC");
	}
	
	public StdKeyJa(F1D f1d, double x, double y){
		super();
		super.setKey(20);
		super.setPenWidth(2);
		super.setText(f1d.getTitle());
		super.setFont(PlotFonts.LEGEND_FONT);
		Color color = f1d.getColor();
		super.setColor(color);
		super.setKeyColor(color);
		super.setLocation(x, y, "NDC");
	}
}
